package com.kotlin.kotlindemo

import android.util.Log
import com.orhanobut.logger.Logger
import java.net.URL

/**
 * Created by zhanghs on 2017/7/10.
 */

public class Request(val url: String) {
    public fun run() {
        val forecastJsonStr = URL(url).readText()
        Log.d(javaClass.simpleName, forecastJsonStr)
//        Log.d(javaClass.simpleName, Gson().toJson(forecastJsonStr))
        Log.d(javaClass.simpleName, "################################")
        Logger.json(forecastJsonStr)
    }
}